home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / wtj009.zip / TOOLBAR.ZIP / README.1ST next >
Text File  |  1992-09-03  |  6KB  |  125 lines

  1. TOOLTEST.EXE - A simple test platform for testing compiled
  2. toolbars. Allows the designer to see the toolbar(s) in
  3. action and see the generated return codes. This will be
  4. yours to publish on Compuserve/supplemental disks if you
  5. like.
  6.  
  7. TOOLTEST.RES - Swap compiled toolbars and bitmaps into this
  8. file and "rc tooltest.res" to test your own toolbars.
  9.  
  10. TC.EXE - The DOS portion of the toolbar. Compiles .tb (text)
  11. files into .tbr (binary) & .rc (Microsoft script) or
  12. optionally, directly into .res files.
  13.  
  14. TOOLTST*.TB - The script files that generated the toolbars
  15. currently in the ToolTest application.
  16.  
  17. readme.1st - this file
  18.  
  19. Tutorials!
  20.  
  21. TOOLTEST.EXE
  22.      Run ToolTest under windows to see some toolbars in
  23. action. Up to three toolbars can be tested at one time but
  24. must be named "tooltest1", "tooltest2", & "tooltest3" of
  25. type "toolbar". If less than three toolbars exist in the
  26. resource, the toolbar function will display a warning but
  27. the program will function normally.
  28.      The Toolbar menu selects the active toolbar (toolbars
  29. that don't exist will be grayed) on which all the other
  30. functions will act. Note that although a toolbar may be
  31. "active" it is not visible until a master set is activated.
  32.      Activate master sets from the Master menu, not all
  33. toolbars have three sets (this is user defined but hard-
  34. coded in the test program, hey it's a simple program...)
  35.      Press tools to see the action. Hierarchical tool bring
  36. up slave tools, non-hierarchical tools return notifications
  37. codes as do all slave tools. Use the Special menu to display
  38. return codes.
  39.      Slave sets can also be displayed manually by the
  40. application; to try this, use the Slave menu.
  41.      Tools can optionally be "unpressed" by the application
  42. (default) under Special. (Master tools can also be unpressed
  43. but since they usually show the state of the application,
  44. ToolTest leaves them pressed.)
  45.      Try out Save State & Restore State (implemented for MDI
  46. applications which may have a different toolbar context
  47. saved for each type or state of the MDI child.)
  48.      With a flexible number of master sets, most
  49. applications won't ever need to load more than one toolbar
  50. resource, but if they wanted two active at a time, say, or
  51. different numbers of cells or tool sizes, it's very simple.
  52.  
  53.  
  54. TC.EXE
  55.      The compiler usage: type 'rc /?' if you forget. The
  56. extension for the input file is '.tb' by default.
  57.  
  58. 'tc mytools'
  59.      Generates mytools.tbr & mytools.rc from mytools.tb.
  60. Mytools.rc can then be appended to your normal scriptfile
  61. and compiled into the .exe with the other resources. (rc
  62. must be able to find mytool.tbr)
  63.  
  64. OR
  65.  
  66. 'tc -r mytools'            [the easy way]
  67.      Generates mytools.res from mytools.tb. It is then
  68. easiest to copy mytools.res into tooltest.res (for example)
  69. using a resource mover like Whitewater Resource Toolkit (be 
  70. sure to rename the resource to "tooltest1", 2, or 3 to use
  71. with tooltest.exe or change name directly in .tb script 
  72. first line.
  73. Then add the resulting .res file (tooltest.res) into the
  74. .exe with 'rc tooltest.res'. Keep in mind that the Windows
  75. toolbar function will retrieve not only the toolbar resource
  76. but also all bitmap resources named in the toolbar resource
  77. so they must also reside in the .res (& resulting .exe)
  78. however unlike the Levaro toolbar, the "pressed" state of
  79. the bitmap (as well as all bevels) are created by the
  80. toolbar. You need only one bitmap per tool, lt. gray
  81. background, whose size is specified in the toolbar script.
  82.  
  83.  
  84. Script Files:
  85.      Look at tooltst1, 2, & 3 (and other neat examples in
  86. 4 & 5) to see the scriptfiles that created the tooltest 
  87. toolbars. Also see sample.tb for a commented example 
  88. (although comments are fine in the scriptfile, this won't 
  89. compile due to a sample error).
  90.  
  91. Well, there's a little taste of the toolbar. Listed below
  92. are a couple of features I'd like to add but the length of
  93. the code (sans headers) is about a thousand lines now (about
  94. evenly distributed between compiler & toolbar Windows
  95. library) and you would be the best judges of which of the
  96. following features to add (if any). Please take a quick look
  97. after you've played with the toolbars a little:
  98.      The script line '..."bitmapname",102' (i.e. no
  99. whitespace after comma) causes the '102' to be lost. This is
  100. simply a known bug in this version.
  101.      The script line 'TOOLSET 1' is a reference to the
  102. programmer that this toolset will be referred to as #1
  103. should he/she want to display a specific toolset. Currently,
  104. the # is ignored and toolsets and assigned numbers in order.
  105. At the very least, a warning should be generated by the
  106. compiler if the numbers do not match. Even better, the
  107. writer should be able to specify an arbitrary number to use
  108. as a reference so that inserting TOOLSETs at the top would
  109. not require 'renumbering' the script and re-coding the
  110. parent application. Ideally, the programmer should be able
  111. to specify 'TOOLSET MAIN_TOOLS' or some identifier which
  112. could be read from a supplied header file that is also used
  113. by the application. For my own use, I will probably
  114. implement the last feature but let me know (ASAP) if you
  115. feel it's worth the extra space. (The addition of the
  116. warning option would be trivial).
  117.      Currently, the toolbar is a library, not a DLL, so the
  118. parent application must register the toolbar window class
  119. and link in toolbar.lib. The toolbar will most likely be a
  120. DLL in the near future so, again, let me know what your
  121. feelings are.
  122.  
  123. That's it! Looking forward to hearing from you...
  124. Dave
  125. (76307,2300)